home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / SCRIB6.PAK / MAKEHELP.BAT < prev    next >
DOS Batch File  |  1997-05-06  |  2KB  |  60 lines

  1. @echo off
  2. REM -- First make map file from Microsoft Visual C++ generated resource.h
  3. echo // MAKEHELP.BAT generated Help Map file.  Used by SCRIBBLE.HPJ. >"hlp\Scribble.hm"
  4. echo. >>"hlp\Scribble.hm"
  5. echo // Commands (ID_* and IDM_*) >>"hlp\Scribble.hm"
  6. makehm ID_,HID_,0x10000 IDM_,HIDM_,0x10000 resource.h >>"hlp\Scribble.hm"
  7. echo. >>"hlp\Scribble.hm"
  8. echo // Prompts (IDP_*) >>"hlp\Scribble.hm"
  9. makehm IDP_,HIDP_,0x30000 resource.h >>"hlp\Scribble.hm"
  10. echo. >>"hlp\Scribble.hm"
  11. echo // Resources (IDR_*) >>"hlp\Scribble.hm"
  12. makehm IDR_,HIDR_,0x20000 resource.h >>"hlp\Scribble.hm"
  13. echo. >>"hlp\Scribble.hm"
  14. echo // Dialogs (IDD_*) >>"hlp\Scribble.hm"
  15. makehm IDD_,HIDD_,0x20000 resource.h >>"hlp\Scribble.hm"
  16. echo. >>"hlp\Scribble.hm"
  17. echo // Frame Controls (IDW_*) >>"hlp\Scribble.hm"
  18. makehm IDW_,HIDW_,0x50000 resource.h >>"hlp\Scribble.hm"
  19. REM -- Make help for Project SCRIBBLE
  20.  
  21. if "%1" == "?" goto :Error
  22. if "%1" == "/?" goto :Error
  23. if "%1" == "-?" goto :Error
  24. if "%1" == "help" goto :Error
  25. if "%1" == "-help" goto :Error
  26. if "%1" == "/help" goto :Error
  27.  
  28. if "%1" == "MAC" goto Mac
  29.  
  30. :Intel
  31. if not "%1" == "" goto :Error
  32. if not "%2" == "" goto :Error
  33.  
  34. echo Building Win32 Help files
  35. start /wait hcrtf -x "hlp\Scribble.hpj"
  36. echo.
  37. if exist Debug\nul if exist hlp\Scribble.hlp copy "hlp\Scribble.hlp" Debug
  38. if exist Debug\nul if exist hlp\Scribble.cnt copy "hlp\Scribble.cnt" Debug
  39. if exist Release\nul if exist hlp\Scribble.hlp copy "hlp\Scribble.hlp" Release
  40. if exist Release\nul if exist hlp\Scribble.cnt copy "hlp\Scribble.cnt" Release
  41. goto :done
  42.  
  43. :Mac
  44. echo Building Macintosh Help files
  45. call hc35 hlp\ScriMac.hpj
  46.  
  47. if %2x == x goto :done
  48. echo Copying to remote machine
  49. mfile copy -c MSH2 -t HELP "ScriMac.hlp" %2
  50. goto :done
  51.  
  52. :Error
  53. echo Usage MAKEHELP [MAC [macintosh-path]]
  54. echo       Where macintosh-path is of the form:
  55. echo       ":<MacintoshName>:...:<MacintoshHelpFile>"
  56.  
  57. :done
  58. echo.
  59.  
  60.